﻿// Write a program that prints all possible cards from a standard deck of 52 cards (without jokers). 
// The cards should be printed with their English names. Use nested for loops and switch-case.

using System;

class PrintPlayingCards
{
    static void Main()
    {
        string rank;
        string suit;

        for (int j = 1; j <= 4; j++)
        {
            switch (j)
            {
                case 1: suit = "Spades"; break;
                case 2: suit = "Hearts"; break;
                case 3: suit = "Diamonds"; break;
                case 4: suit = "Clubs"; break;
                default: suit = "Invalid suit."; break;
            }

            for (int i = 2; i <= 14; i++)
            {
                switch (i)
                {
                    case 2: rank = "2 of "; break;
                    case 3: rank = "3 of "; break;
                    case 4: rank = "4 of "; break;
                    case 5: rank = "5 of "; break;
                    case 6: rank = "6 of "; break;
                    case 7: rank = "7 of "; break;
                    case 8: rank = "8 of "; break;
                    case 9: rank = "9 of "; break;
                    case 10: rank = "10 of "; break;
                    case 11: rank = "Jack of "; break;
                    case 12: rank = "Queen of "; break;
                    case 13: rank = "King of "; break;
                    case 14: rank = "Ace of "; break;
                    default: rank = "Invalid rank."; break;
                }
                Console.WriteLine(rank + suit);
            }
            Console.WriteLine();
        }
    }
}
